<template>
  <el-dialog title="查看使用物品" width="50%" :before-close="dialogClose" :visible.sync="show">
    <el-table :data="goods" style="width: 100%" border>
        <el-table-column prop="name" label="物品名称" align="center"></el-table-column>
        <el-table-column prop="use_num" label="使用数量" align="center"></el-table-column>
    </el-table>
    </el-dialog>
</template>
 
<script>
export default {
  name: 'goodsTable',
  props:['show','goods'],
  data() {
    return {
      form:{},
      index:0,
      list:[]
    }
  },
  created: function() {
    
  },
  methods: {
    dialogClose:function(){
      this.$emit("func",{'key':'goodsTable'})
    }
  }
}
</script>